const express = require('express');
const router = express.Router();
const { FormatJson } = require("../utils/tool");

// 获取首页轮播图
router.get("/", (req, res) => {
    const returnArr = [
        {
            src: "/static/uploads/u=1125354638,789360138&fm=253&fmt=auto&app=138&f=JPEG-1684136882678-7019.webp",
        },
        {
            src: "/static/uploads/src=http___img3.doubanio.com_view_group_topic_l_public_p363173661.jpg&refer=http___img3.doubanio-1684136961250-9585.webp",
        },
        {
            src: "/static/uploads/u=359150051,3635362051&fm=253&fmt=auto&app=138&f=JPEG-1684136982531-2207.webp",
        },
        {
            src: "/static/uploads/u=1304137345,4097358934&fm=253&fmt=auto&app=138&f=JPEG-1684137000841-1945.webp",
        },
        {
            src: "/static/uploads/u=1730606823,1352785419&fm=253&fmt=auto&app=120&f=JPEG-1684137014185-7658.webp",
        },
        {
            src: "/static/uploads/u=2789388897,2830111382&fm=253&fmt=auto&app=120&f=JPEG-1684137030836-7753.webp",
        },
    ];
    res.send(FormatJson(0, "", returnArr))
})

module.exports = router;